﻿@{
    ViewData["Title"] = "新增";
}
@model DeviceInfoViewModel
<div class="row">
    <div class="col-sm-12">
        <form enctype="multipart/form-data" method="post" asp-action="Save">
            <div asp-validation-summary="ModelOnly" class="text-danger"></div>
            <div class="form-group form-inline my-sm-1">
                <label asp-for="DeviceSerialNo" class="control-label col-sm-3"></label>
                <input asp-for="DeviceSerialNo" class="form-control col-sm-9" placeholder="请输入设备序列号" />
                <span asp-validation-for="DeviceSerialNo" class="text-danger offset-sm-3 my-sm-1"></span>
            </div>
            <div class="form-group form-inline my-sm-1">
                <label asp-for="ProjectName" class="control-label col-sm-3"></label>
                <input asp-for="ProjectName" class="form-control col-sm-9" placeholder="请输入项目名称" />
                <span asp-validation-for="ProjectName" class="text-danger offset-sm-3 my-sm-1"></span>
            </div>
            <div class="form-group form-inline my-sm-1">
                <label asp-for="DeviceName" class="control-label col-sm-3"></label>
                <input asp-for="DeviceName" class="form-control col-sm-9" placeholder="请输入设备名称" />
                <span asp-validation-for="DeviceName" class="text-danger offset-sm-3 my-sm-1"></span>
            </div>
            <div class="form-group form-inline my-sm-1">
                <label asp-for="ToDeskId" class="control-label col-sm-3"></label>
                <input asp-for="ToDeskId" class="form-control col-sm-9" placeholder="请输入ToDeskId" />
                <span asp-validation-for="ToDeskId" class="text-danger offset-sm-3 my-sm-1"></span>
            </div>
          @*  <div class="form-group form-inline my-sm-1">
                <label asp-for="Type" class="control-label col-sm-3"></label>
                <select asp-for="Type" asp-items="Html.GetEnumSelectList<EnumAccountType>()" class="custom-select col-sm-9"></select>
                <span asp-validation-for="Type" class="text-danger offset-sm-3 my-sm-1"></span>
            </div>*@
            <div class="form-group form-inline my-sm-1">
                <label asp-for="ToDeskPsw" class="control-label col-sm-3"></label>
                <input asp-for="ToDeskPsw" class="form-control col-sm-9" placeholder="请输入ToDesk密码" />
                <span asp-validation-for="ToDeskPsw" class="text-danger offset-sm-3 my-sm-1"></span>
            </div>
            <div class="form-group form-inline my-sm-1">
                <label asp-for="OraySunId" class="control-label col-sm-3"></label>
                <input asp-for="OraySunId" class="form-control col-sm-9" placeholder="请输入向日葵Id" />
                <span asp-validation-for="OraySunId" class="text-danger offset-sm-3 my-sm-1"></span>
            </div>
            <div class="form-group form-inline my-sm-1">
                <label asp-for="OraySunPsw" class="control-label col-sm-3"></label>
                <input asp-for="OraySunPsw" class="form-control col-sm-9" placeholder="请输入OraySun密码" />
                <span asp-validation-for="OraySunPsw" class="text-danger offset-sm-3 my-sm-1"></span>
            </div>
            <span style="color: firebrick; word-break: break-all; " class="text-danger offset-sm-3">@Html.ValidationMessage("error")</span>
            <div class="form-group">
                <input type="submit" value="保存" class="btn btn-primary offset-sm-3" />
            </div>

        </form>
    </div>
</div>